package com.cskaoyan.catmall.model.vo;

import com.cskaoyan.catmall.model.pojo.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 创建日期: 2022-01-10-21-46
 * author : LL
 * description: 商品详情页面
 */
@NoArgsConstructor
@Data
public class WxGoodsDetailVo {

    private List<SpecificationListDTO> specificationList;
//    private List<MarketGroupon> groupon = new ArrayList<>();
    private List<MarketIssue> issue;
    private Integer userHasCollect;
    private String shareImage = "";
    private CommentDTO comment;
    private Boolean share = true;
    private List<MarketGoodsAttribute> attribute;
    private MarketBrand brand;
    private List<MarketGoodsProduct> productList;
    private MarketGoods info;

    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class CommentDTO {
        private List<MarketComment> data;
        private Integer count;
    }


    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class SpecificationListDTO {
        private String name;
        private List<MarketGoodsSpecification> valueList;


    }



}